package com.example.mongodb.entity;

import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

@Builder
@Data
public class Case implements Serializable {/**
	 * 
	 */
	private static final long serialVersionUID = -301894237805010475L;
	
	private String id;
	
	private String caseNum;
	
	private String caseBatch;
	
	private String loanContract;
	
	private Integer overdueDays;
	
	private Integer caseStatus;
	
	private Date startTime;
	
	private Date endTime;
	
	private Boolean historyFlag;
	
	private FlagEnum stateFlag;
	
	public static enum FlagEnum{
		IS_OK,
		IS_FALl;
	}
	
	@Override
	public String toString(){
		return "Case{"
				+ "id="+id
				+ "caseNum="+caseNum
				+ "caseBatch="+caseBatch
				+ "loanContract="+loanContract
				+ "overdueDays="+overdueDays
				+ "caseStatus="+caseStatus
				+ "startTime="+startTime
				+ "endTime="+endTime
				+ "historyFlag="+historyFlag
				+ "stateFlag="+stateFlag
				+ "}";
	}
}
